package com.hfmall.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(value = {"handler"})
public class HfGoodsinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String goodsName; //商品名

    private String goodsNo;  //商品编号

    private String weight;  //商品毛重量

    private String descriptors; //商品描述

    private Integer pid;   //所属类别

    private String hot;  //热卖 y(爆款)/n

    private String status; //状态:上架-s/下架-x/缺货-q

    @TableField("coverPath")
    private String coverPath;//封面图片地址

    private Integer no;  //排序编号,展示商品顺序

    private BigDecimal price;

    @TableField(exist = false)
    private BigDecimal max;
    @TableField(exist = false)
    private BigDecimal min;

    @TableField(exist = false)
    private List<HfGoods> hfGoodsList;  //info_id对应的具体商品们
}
